public class ObservableRemoteServerImpl extends org.refcodes.remoting.RemoteServerImpl implements ObservableRemoteServer
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
Constructor and Description |
---|
ObservableRemoteServerImpl()
Instantiates a new observable remote server impl.
|
ObservableRemoteServerImpl(ExecutorService aExecutorService)
Instantiates a new observable remote server impl.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
fromSender(org.refcodes.remoting.Message arg0) |
protected ExecutorService |
getExecutorService() |
boolean |
hasObserverSubscription(ProviderRemoteObserver aObserver) |
protected boolean |
isDestroyed() |
protected void |
onClosed() |
protected void |
onOpened() |
protected void |
onSubjectPublished(Object aSubject) |
protected void |
onSubjectSignedOff(Object aSubject) |
boolean |
subscribeObserver(ProviderRemoteObserver aObserver) |
protected void |
toReceiver(org.refcodes.remoting.Message arg0) |
boolean |
unsubscribeObserver(ProviderRemoteObserver aObserver) |
clear, close, close, digest, doSendJob, hasSubject, isBusy, isEmpty, publishSubject, signOffSubject, signOffSubject, size, subjects
getConnectionStatus, isClosable, isClosed, isOpenable, isOpened, open, setConnectionStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasSubject, publishSubject, signOffSubject, signOffSubject, subjects
isOpenable
close, closeIn, closeQuietly, closeUnchecked
public ObservableRemoteServerImpl()
public ObservableRemoteServerImpl(ExecutorService aExecutorService)
aExecutorService
- the executor servicepublic boolean hasObserverSubscription(ProviderRemoteObserver aObserver)
hasObserverSubscription
in interface org.refcodes.observer.Observable<ProviderRemoteObserver>
public boolean subscribeObserver(ProviderRemoteObserver aObserver)
subscribeObserver
in interface org.refcodes.observer.Observable<ProviderRemoteObserver>
public boolean unsubscribeObserver(ProviderRemoteObserver aObserver)
unsubscribeObserver
in interface org.refcodes.observer.Observable<ProviderRemoteObserver>
public void destroy()
destroy
in interface org.refcodes.component.Destroyable
destroy
in class org.refcodes.remoting.RemoteServerImpl
protected void onOpened()
protected void onSubjectPublished(Object aSubject)
onSubjectPublished
in class org.refcodes.remoting.RemoteServerImpl
protected void onSubjectSignedOff(Object aSubject)
onSubjectSignedOff
in class org.refcodes.remoting.RemoteServerImpl
protected void onClosed()
protected void toReceiver(org.refcodes.remoting.Message arg0) throws org.refcodes.component.OpenException
org.refcodes.component.OpenException
protected void fromSender(org.refcodes.remoting.Message arg0)
protected ExecutorService getExecutorService()
protected boolean isDestroyed()
Copyright © 2018. All rights reserved.