|
virtual void | AddToContext (const string &key, const string &value)=0 |
| Shortcuts to access the context. More...
|
|
virtual void | AddToContext (const string &key, const int64_t &value)=0 |
|
virtual void | Close ()=0 |
| Closes the session explicitly.
|
|
virtual void | CloseTransport ()=0 |
| Closes all the attached transport.
|
|
virtual bool | CloseTransport (TransportProtocol protocol)=0 |
| Closes the specified transport if attached. More...
|
|
| DECLARE_CLASS_PTR (Session) |
|
virtual bool | DeleteFromContext (const string &key)=0 |
|
virtual const Json & | GetContext () const =0 |
| Returns the associated context. More...
|
|
virtual Json & | GetContext ()=0 |
| Returns the associated context. More...
|
|
virtual boost::mutex & | GetContextMutex ()=0 |
| Returns mutex of the session for per-session synchronization. More...
|
|
virtual WallClock::Value | GetExpirationTime () const =0 |
| Returns a time when the session gets expired. More...
|
|
virtual bool | GetFromContext (const string &key, string *ret) const =0 |
|
virtual bool | GetFromContext (const string &key, int64_t *ret) const =0 |
|
virtual bool | GetLastReceiveTime (const string &message_type, WallClock::Value *receive_time) const =0 |
| Gets the last time received specified message. More...
|
|
virtual bool | GetLastSendTime (const string &message_type, WallClock::Value *send_time) const =0 |
| Gets the last time sent a specified message. More...
|
|
virtual Ping | GetPing () const =0 |
| Gets round-trip time to the client associated with the session. More...
|
|
virtual Ping | GetPing (TransportProtocol protocol) const =0 |
|
virtual size_t | GetPingSamplingInterval () const =0 |
| Returns ping sampling interval. More...
|
|
virtual size_t | GetPingSamplingInterval (TransportProtocol protocol) const =0 |
|
virtual size_t | GetPingTimeout () const =0 |
| Returns ping timeout. More...
|
|
virtual size_t | GetPingTimeout (TransportProtocol protocol) const =0 |
|
virtual bool | GetRemoteEndPoint (TransportProtocol protocol, string *ip, uint16_t *port=NULL) const =0 |
| Gets a remote end point with the given protocol. More...
|
|
virtual std::set< string > | GetTags () const =0 |
| Returns tags associated with the session. More...
|
|
virtual bool | HasTag (const string &tag) const =0 |
| Checks if the session has the tag key. More...
|
|
virtual const SessionId & | id () const =0 |
|
virtual bool | IsOpened () const =0 |
| Checks if the session is opened. More...
|
|
virtual bool | IsRestored () const =0 |
| Checks if the session is restored session or not. More...
|
|
virtual bool | IsTransportAttached () const =0 |
| Checks if there is any transport attached to this session. More...
|
|
virtual bool | IsTransportAttached (TransportProtocol protocol) const =0 |
| Checks if there is the specified transport attached to this session. More...
|
|
virtual const string & | LastReceivedMessageType () const =0 |
|
virtual const string & | LastSentMessageType () const =0 |
|
virtual void | LockContext ()=0 |
| Locks/Unlocks mutex of the session. More...
|
|
virtual | operator boost::mutex & () const =0 |
|
virtual void | SendBackMessage (const Json &message, Encryption encryption=kDefaultEncryption, TransportProtocol protocol=kDefaultProtocol)=0ASSERT_NO_ROLLBACK |
| Send out given message in JSON with the last-seen message type. More...
|
|
virtual void | SendBackMessage (const Ptr< FunMessage > &message, Encryption encryption=kDefaultEncryption, TransportProtocol protocol=kDefaultProtocol)=0ASSERT_NO_ROLLBACK |
| Sends out given message in Protobuf with the last-seen message type. More...
|
|
virtual void | SendMessage (const string &message_type, Encryption encryption=kDefaultEncryption, TransportProtocol protocol=kDefaultProtocol)=0ASSERT_NO_ROLLBACK |
| Sends out given message. More...
|
|
virtual void | SendMessage (const string &message_type, const Json &message, Encryption encryption=kDefaultEncryption, TransportProtocol protocol=kDefaultProtocol)=0ASSERT_NO_ROLLBACK |
| Sends out given message in Json type. More...
|
|
virtual void | SendMessage (const string &message_type, const Ptr< FunMessage > &message, Encryption encryption=kDefaultEncryption, TransportProtocol protocol=kDefaultProtocol)=0ASSERT_NO_ROLLBACK |
| Sends out given message in Protobuf type. More...
|
|
virtual void | SendMessage (int32_t message_type, const Ptr< FunMessage > &message, Encryption encryption=kDefaultEncryption, TransportProtocol protocol=kDefaultProtocol)=0ASSERT_NO_ROLLBACK |
| Sends out given message in Protobuf type. More...
|
|
virtual void | SendMessage (const ProtobufExtensionIdentifier &message_type, const Ptr< FunMessage > &message, Encryption encryption=kDefaultEncryption, TransportProtocol protocol=kDefaultProtocol)=0ASSERT_NO_ROLLBACK |
| Sends out given message in Protobuf type. More...
|
|
virtual void | SetContext (const Json &ctxt)=0 |
| Associate the session with the given user-prvided context. More...
|
|
virtual void | SetPingSamplingInterval (size_t seconds)=0 |
| Sets ping sampling interval. More...
|
|
virtual void | SetPingSamplingInterval (size_t seconds, TransportProtocol protocol)=0 |
|
virtual void | SetPingTimeout (size_t seconds)=0 |
| Sets ping timeout. More...
|
|
virtual void | SetPingTimeout (size_t seconds, TransportProtocol protocol)=0 |
|
virtual void | Tag (const string &tag)=0 |
| Tags the session. More...
|
|
virtual void | UnlockContext ()=0 |
|
virtual void | Untag (const string &tag)=0 |
| Untags the session. More...
|
|
|
static void | BroadcastGlobally (const string &message_type, const Json &message, const Rpc::Tag &server_tag, Encryption encryption, TransportProtocol protocol) ASSERT_NO_ROLLBACK |
| Broadcasts a Json message to all the sessions of the given RPC servers. More...
|
|
static void | BroadcastGlobally (const string &message_type, const Ptr< FunMessage > &message, const Rpc::Tag &server_tag, Encryption encryption, TransportProtocol protocol) ASSERT_NO_ROLLBACK |
| Broadcasts a protobuf message to all the sessions of the given RPC servers. More...
|
|
static void | BroadcastGlobally (int32_t message_type, const Ptr< FunMessage > &message, const Rpc::Tag &server_tag, Encryption encryption, TransportProtocol protocol) ASSERT_NO_ROLLBACK |
| Broadcasts a protobuf message to all the sessions of the given RPC servers. More...
|
|
static void | BroadcastGlobally (const ProtobufExtensionIdentifier &message_type, const Ptr< FunMessage > &message, const Rpc::Tag &server_tag, Encryption encryption, TransportProtocol protocol) ASSERT_NO_ROLLBACK |
| Broadcasts a protobuf message to all the sessions of the given RPC servers. More...
|
|
static void | BroadcastGlobally (const string &message_type, const Json &message, const Rpc::PeerMap &servers, Encryption encryption, TransportProtocol protocol) ASSERT_NO_ROLLBACK |
| Broadcasts a Json message to all the sessions of the given RPC servers. More...
|
|
static void | BroadcastGlobally (const string &message_type, const Ptr< FunMessage > &message, const Rpc::PeerMap &servers, Encryption encryption, TransportProtocol protocol) ASSERT_NO_ROLLBACK |
| Broadcasts a protobuf message to all the sessions of the given RPC servers. More...
|
|
static void | BroadcastGlobally (int32_t message_type, const Ptr< FunMessage > &message, const Rpc::PeerMap &servers, Encryption encryption, TransportProtocol protocol) ASSERT_NO_ROLLBACK |
| Broadcasts a protobuf message to all the sessions of the given RPC servers. More...
|
|
static void | BroadcastGlobally (const ProtobufExtensionIdentifier &message_type, const Ptr< FunMessage > &message, const Rpc::PeerMap &servers, Encryption encryption, TransportProtocol protocol) ASSERT_NO_ROLLBACK |
| Broadcasts a protobuf message to all the sessions of the given RPC servers. More...
|
|
static void | BroadcastLocally (const string &message_type, const Json &message, Encryption encryption, TransportProtocol protocol) ASSERT_NO_ROLLBACK |
| Broadcasts a Json message to all the local sessions. More...
|
|
static void | BroadcastLocally (const string &message_type, const Ptr< FunMessage > &message, Encryption encryption, TransportProtocol protocol) ASSERT_NO_ROLLBACK |
| Broadcasts a protobuf message to all the local sessions. More...
|
|
static void | BroadcastLocally (int32_t message_type, const Ptr< FunMessage > &message, Encryption encryption, TransportProtocol protocol) ASSERT_NO_ROLLBACK |
| Broadcasts a protobuf message to all the local sessions. More...
|
|
static void | BroadcastLocally (const ProtobufExtensionIdentifier &message_type, const Ptr< FunMessage > &message, Encryption encryption, TransportProtocol protocol) ASSERT_NO_ROLLBACK |
| Broadcasts a protobuf message to all the local sessions. More...
|
|
static size_t | CountWithTag (const string &key) |
| Returns the number of sessions with the given key. More...
|
|
static Ptr< Session > | Find (const SessionId &session_id) |
|
static SessionsSet | FindWithTag (const string &key) |
| Finds a session with the given key. More...
|
|