public class ObservableRemoteClientImpl extends org.refcodes.remoting.RemoteClientImpl implements ObservableRemoteClient
org.refcodes.remoting.RemoteClient.ProxyControl
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 |
---|
ObservableRemoteClientImpl()
Instantiates a new observable remote client impl.
|
ObservableRemoteClientImpl(ExecutorService aExecutorService)
Instantiates a new observable remote client impl.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
fromSender(org.refcodes.remoting.Message arg0) |
protected ExecutorService |
getExecutorService() |
boolean |
hasObserverSubscription(ConsumerRemoteObserver aObserver) |
protected boolean |
isDestroyed() |
protected void |
onClosed() |
protected void |
onOpened() |
protected void |
onProxyPublished(Object aProxy) |
protected void |
onProxySignedOff(Object aProxy) |
protected void |
onPublishProxy(Class<?> aType) |
boolean |
subscribeObserver(ConsumerRemoteObserver aObserver) |
protected void |
toReceiver(org.refcodes.remoting.Message arg0) |
boolean |
unsubscribeObserver(ConsumerRemoteObserver aObserver) |
clear, close, close, digest, doSendJob, getProxy, hasProxy, hasProxy, isBusy, isEmpty, proxies, signOffProxy, size
getConnectionStatus, isClosable, isClosed, isOpenable, isOpened, open, setConnectionStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getProxy, hasProxy, hasProxy, proxies, signOffProxy
isOpenable
close, closeIn, closeQuietly, closeUnchecked
public ObservableRemoteClientImpl()
public ObservableRemoteClientImpl(ExecutorService aExecutorService)
aExecutorService
- the executor servicepublic boolean hasObserverSubscription(ConsumerRemoteObserver aObserver)
hasObserverSubscription
in interface org.refcodes.observer.Observable<ConsumerRemoteObserver>
public boolean subscribeObserver(ConsumerRemoteObserver aObserver)
subscribeObserver
in interface org.refcodes.observer.Observable<ConsumerRemoteObserver>
public boolean unsubscribeObserver(ConsumerRemoteObserver aObserver)
unsubscribeObserver
in interface org.refcodes.observer.Observable<ConsumerRemoteObserver>
public void destroy()
destroy
in interface org.refcodes.component.Destroyable
destroy
in class org.refcodes.remoting.RemoteClientImpl
protected void onOpened()
protected void onPublishProxy(Class<?> aType) throws org.refcodes.exception.VetoException
onPublishProxy
in class org.refcodes.remoting.RemoteClientImpl
org.refcodes.exception.VetoException
protected void onProxyPublished(Object aProxy)
onProxyPublished
in class org.refcodes.remoting.RemoteClientImpl
protected void onProxySignedOff(Object aProxy)
onProxySignedOff
in class org.refcodes.remoting.RemoteClientImpl
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.