public class SessionStore extends Object
original
non RX-ified interface using Vert.x codegen.Constructor and Description |
---|
SessionStore(SessionStore delegate) |
Modifier and Type | Method and Description |
---|---|
void |
clear(Handler<AsyncResult<Boolean>> resultHandler)
Remove all sessions from the store
|
rx.Observable<Boolean> |
clearObservable()
Remove all sessions from the store
|
void |
close()
Close the store
|
Session |
createSession(long timeout)
Create a new session
|
void |
delete(String id,
Handler<AsyncResult<Boolean>> resultHandler)
Delete the session with the specified ID
|
rx.Observable<Boolean> |
deleteObservable(String id)
Delete the session with the specified ID
|
void |
get(String id,
Handler<AsyncResult<Session>> resultHandler)
Get the session with the specified ID
|
Object |
getDelegate() |
rx.Observable<Session> |
getObservable(String id)
Get the session with the specified ID
|
static SessionStore |
newInstance(SessionStore arg) |
void |
put(Session session,
Handler<AsyncResult<Boolean>> resultHandler)
Add a session with the specified ID
|
rx.Observable<Boolean> |
putObservable(Session session)
Add a session with the specified ID
|
void |
size(Handler<AsyncResult<Integer>> resultHandler)
Get the number of sessions in the store
|
rx.Observable<Integer> |
sizeObservable()
Get the number of sessions in the store
|
public SessionStore(SessionStore delegate)
public Object getDelegate()
public Session createSession(long timeout)
timeout
- - the session timeout, in mspublic void get(String id, Handler<AsyncResult<Session>> resultHandler)
id
- the unique ID of the sessionresultHandler
- will be called with a result holding the session, or a failurepublic rx.Observable<Session> getObservable(String id)
id
- the unique ID of the sessionpublic void delete(String id, Handler<AsyncResult<Boolean>> resultHandler)
id
- the unique ID of the sessionresultHandler
- will be called with a result true/false, or a failurepublic rx.Observable<Boolean> deleteObservable(String id)
id
- the unique ID of the sessionpublic void put(Session session, Handler<AsyncResult<Boolean>> resultHandler)
session
- the sessionresultHandler
- will be called with a result true/false, or a failurepublic rx.Observable<Boolean> putObservable(Session session)
session
- the sessionpublic void clear(Handler<AsyncResult<Boolean>> resultHandler)
resultHandler
- will be called with a result true/false, or a failurepublic rx.Observable<Boolean> clearObservable()
public void size(Handler<AsyncResult<Integer>> resultHandler)
resultHandler
- will be called with the number, or a failurepublic rx.Observable<Integer> sizeObservable()
public void close()
public static SessionStore newInstance(SessionStore arg)
Copyright © 2015. All Rights Reserved.