public class CoherenceSession extends Object implements Session
Session allowing applications to use
the new operator to create a Session via the default
SessionProvider.Session,
SessionProviderSession.Option| Modifier and Type | Field | Description |
|---|---|---|
protected Session |
m_session |
The underlying
Session to which this implementation will
delegate requests. |
| Constructor | Description |
|---|---|
CoherenceSession(Session.Option... options) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
|
<K,V> NamedCache<K,V> |
getCache(String sName,
NamedCache.Option... options) |
|
<V> NamedTopic<V> |
getTopic(String sName,
NamedCollection.Option... options) |
Acquire a
NamedTopic using the
specified ValueTypeAssertion. |
public CoherenceSession(Session.Option... options)
options - the Options for the CoherenceSessionpublic <K,V> NamedCache<K,V> getCache(String sName, NamedCache.Option... options)
SessiongetCache in interface SessionK - the type of keys for the NamedCacheV - the type of values for the NamedCachesName - the name of the NamedCacheoptions - the NamedCache.OptionsNamedCachepublic <V> NamedTopic<V> getTopic(String sName, NamedCollection.Option... options)
NamedTopic using the
specified ValueTypeAssertion.getTopic in interface SessionV - the type of elements for the NamedTopicsName - the name of the NamedTopicNamedCachepublic void close()
throws Exception
close in interface AutoCloseableException