|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.rest.EntryResource
public class EntryResource
REST resource representing a single cache entry.
Field Summary | |
---|---|
protected NamedCache |
m_cache NamedCache which stores the referenced entry. |
protected java.lang.Class |
m_clzValue Class of the referenced entry's value. |
protected java.lang.Object |
m_oKey Referenced entry's key. |
protected MarshallerRegistry |
m_registry Marshaller registry to obtain marshallers from. |
Constructor Summary | |
---|---|
EntryResource(NamedCache cache, java.lang.Object oKey, java.lang.Class clzValue, MarshallerRegistry registry) Construct EntryResource. |
Method Summary | |
---|---|
javax.ws.rs.core.Response |
delete() Remove the entry. |
protected boolean |
exists() Return true if the referenced entry exists in the cache. |
javax.ws.rs.core.Response |
get(com.tangosol.coherence.rest.util.PropertySet propertySet, javax.ws.rs.core.Request request) Return the entry value or a subset of its properties. |
protected java.lang.Object |
getValue() Get the entry value. |
javax.ws.rs.core.Response |
process(java.lang.String sProc, ProcessorRegistry registry) Invoke the specified processor against the entry's key. |
javax.ws.rs.core.Response |
put(javax.ws.rs.core.HttpHeaders headers, java.io.InputStream in) Update the entry value. |
protected javax.ws.rs.core.Response |
putInternal(java.lang.Object oValue) Update the cache entry. |
protected java.lang.Object |
remove() Remove entry from the cache. |
protected java.lang.Object |
setValue(java.lang.Object oValue) Set the entry value. |
Field Detail |
---|
protected final NamedCache m_cache
protected final java.lang.Object m_oKey
protected final java.lang.Class m_clzValue
protected final MarshallerRegistry m_registry
Constructor Detail |
---|
public EntryResource(NamedCache cache, java.lang.Object oKey, java.lang.Class clzValue, MarshallerRegistry registry)
cache
- cache in which referenced entry is storedoKey
- referenced entry's keyclzValue
- class of the referenced entry's valueregistry
- a registry to obtain marshallers fromMethod Detail |
---|
public javax.ws.rs.core.Response get(com.tangosol.coherence.rest.util.PropertySet propertySet,
@Context
javax.ws.rs.core.Request request)
propertySet
- properties to return (if null, value itself will be returned)request
- current HTTP request
public javax.ws.rs.core.Response put(@Context
javax.ws.rs.core.HttpHeaders headers,
java.io.InputStream in)
in
- a stream containing a JSON/XML/Binary representation of the new valueputInternal(java.lang.Object)
methodpublic javax.ws.rs.core.Response delete()
public javax.ws.rs.core.Response process(java.lang.String sProc, ProcessorRegistry registry)
sProc
- name of the processorregistry
- a processor registry that is used to map the given processor name to an EntryProcessor instanceprotected javax.ws.rs.core.Response putInternal(java.lang.Object oValue)
oValue
- new entry valueVersionable
interface and the version of the entry in the cache does not match the version of the entry in the request (in case of conflict, the current entry value will be returned in the body of the response as well)protected java.lang.Object getValue()
protected java.lang.Object setValue(java.lang.Object oValue)
oValue
- new valueprotected java.lang.Object remove()
protected boolean exists()
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |