public class CoherenceSession extends Object implements Session
Session
allowing applications to use
the new operator to create a Session
via the default
SessionProvider
.Session
,
SessionProvider
Session.Option
Modifier and Type | Field and Description |
---|---|
protected Session |
m_session
The underlying
Session to which this implementation will
delegate requests. |
Constructor and Description |
---|
CoherenceSession(Session.Option... options)
|
Modifier and Type | Method and 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 Option
s for the CoherenceSession
public <K,V> NamedCache<K,V> getCache(String sName, NamedCache.Option... options)
Session
getCache
in interface Session
K
- the type of keys for the NamedCache
V
- the type of values for the NamedCache
sName
- the name of the NamedCache
options
- the NamedCache.Option
sNamedCache
public <V> NamedTopic<V> getTopic(String sName, NamedCollection.Option... options)
NamedTopic
using the
specified ValueTypeAssertion
.getTopic
in interface Session
V
- the type of elements for the NamedTopic
sName
- the name of the NamedTopic
NamedCache
public void close() throws Exception
close
in interface AutoCloseable
Exception