|
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 |
public interface Service
This Service interface represents a controllable service that operates in a clustered network environment.
Nested Class Summary | |
---|---|
static interface |
Service.MemberJoinAction MemberJoinAction is taken to allow a new member to join a clustered Service. |
Method Summary | |
---|---|
void |
addMemberListener(MemberListener listener) Add a Member listener. |
Cluster |
getCluster() Return the Cluster object that this Service is a part of. |
ServiceInfo |
getInfo() Return the ServiceInfo object for this Service. |
Serializer |
getSerializer() Return a Serializer used by this Service. |
java.lang.Object |
getUserContext() Return the user context object associated with this Service. |
void |
removeMemberListener(MemberListener listener) Remove a Member listener. |
void |
setDependencies(ServiceDependencies deps) Configure the Service. |
void |
setUserContext(java.lang.Object oCtx) Associate a user context object with this Service. |
Methods inherited from interface com.tangosol.util.Service |
---|
addServiceListener, removeServiceListener |
Methods inherited from interface com.tangosol.util.Controllable |
---|
configure, isRunning, shutdown, start, stop |
Methods inherited from interface com.tangosol.io.ClassLoaderAware |
---|
getContextClassLoader, setContextClassLoader |
Method Detail |
---|
Cluster getCluster()
ServiceInfo getInfo()
void addMemberListener(MemberListener listener)
listener
- the MemberListener
to addvoid removeMemberListener(MemberListener listener)
listener
- the MemberListener
to removejava.lang.Object getUserContext()
The data type and semantics of this context object are entirely application specific and are opaque to the Service itself.
void setUserContext(java.lang.Object oCtx)
oCtx
- a user context objectSerializer getSerializer()
void setDependencies(ServiceDependencies deps)
This method can only be called before the Service is started.
deps
- the dependencies object carrying configuration information specific to this Servicejava.lang.IllegalStateException
- thrown if the Service is already runningjava.lang.IllegalArgumentException
- thrown if the configuration information is invalid
|
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 |