public interface RemoteServer extends Remote
RemoteClient
instances.org.refcodes.component.Destroyable.DestroyAutomaton
org.refcodes.component.ConnectableComponent.ConnectableAutomaton
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
org.refcodes.component.OpenedAccessor.OpenedMutator, org.refcodes.component.OpenedAccessor.OpenedProperty
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
org.refcodes.component.ClosedAccessor.ClosedMutator, org.refcodes.component.ClosedAccessor.ClosedProperty
Modifier and Type | Method and Description |
---|---|
boolean |
hasSubject(Object aSubject)
Returns true if the provided subject is contained inside this
RemoteServer . |
boolean |
publishSubject(Object aSubject)
Publishes an object to any
RemoteClient connected to the
RemoteServer . |
boolean |
signOffSubject(Object aSubject)
Tries to sign off the (previously published) subject, this can be vetoed
in case the subject is still in use by a
RemoteClient . |
boolean |
signOffSubject(Object aSubject,
int aTimeoutInMs)
Signs off the (previously published) subject, this be vetoed even in case
the subject is still in use by a
RemoteClient , but the veto will
only delay the sign off by the given timeout. |
Iterator<Object> |
subjects()
Returns an (immutable) iterator containing all the proxy objects
previously being published.
|
isOpenable
close, closeIn, closeQuietly, closeUnchecked
boolean hasSubject(Object aSubject)
RemoteServer
.aSubject
- The subject to be tested if it is contained inside the
RemoteServer
.RemoteServer
.Iterator<Object> subjects()
signOffSubject(Object)
method in order to remove a published subject.boolean publishSubject(Object aSubject) throws org.refcodes.component.OpenException
RemoteClient
connected to the
RemoteServer
.aSubject
- A subject being published for inter-process communication
such as remote procedure calls or remote method invocations.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.boolean signOffSubject(Object aSubject) throws org.refcodes.exception.VetoException, org.refcodes.component.OpenException
RemoteClient
.aSubject
- Description is currently not available!RemoteClient
threw a VetoException
then the
sign-off is aborted.org.refcodes.exception.VetoException
- the veto exceptionorg.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.boolean signOffSubject(Object aSubject, int aTimeoutInMs) throws org.refcodes.component.OpenException
RemoteClient
, but the veto will
only delay the sign off by the given timeout.aSubject
- The subject to be signed off.aTimeoutInMs
- The timeout to be granted in case the sign-off has
been vetoed, nevertheless the subject will be signed off after the
timeout elapsed.RemoteClient
threw a VetoException
then the
sign-off is aborted.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2017. All rights reserved.