org.refcodes.mixin.BusyAccessor
, org.refcodes.mixin.Clearable
, org.refcodes.component.Closable
, org.refcodes.component.Closable.CloseAutomaton
, org.refcodes.component.ClosedAccessor
, org.refcodes.component.Component
, org.refcodes.component.ConnectableComponent
, org.refcodes.component.ConnectableComponent.ConnectableAutomaton
, org.refcodes.component.ConnectionComponent<org.refcodes.io.DatagramTransceiver<Serializable>>
, org.refcodes.component.ConnectionComponent.ConnectionAutomaton<org.refcodes.io.DatagramTransceiver<Serializable>>
, org.refcodes.component.ConnectionOpenable<org.refcodes.io.DatagramTransceiver<Serializable>>
, org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<org.refcodes.io.DatagramTransceiver<Serializable>>
, org.refcodes.component.ConnectionStatusAccessor
, org.refcodes.struct.Containable
, org.refcodes.component.Destroyable
, org.refcodes.component.OpenedAccessor
, Remote
RemoteClientImpl
public interface RemoteClient extends Remote
RemoteServer
.Modifier and Type | Interface | Description |
---|---|---|
static interface |
RemoteClient.ProxyControl |
The
RemoteClient.ProxyControl is used to manage a proxy being provided from a
subject be the RemoteServer . |
org.refcodes.mixin.BusyAccessor.BusyMutator, org.refcodes.mixin.BusyAccessor.BusyProperty
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
org.refcodes.component.ConnectableComponent.ConnectableAutomaton
org.refcodes.component.ConnectionComponent.ConnectionAutomaton<CON extends Object>, org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON extends Object,B extends org.refcodes.component.ConnectionComponent.ConnectionComponentBuilder<CON,B>>
org.refcodes.component.ConnectionOpenable.ConnectionOpenAutomaton<CON extends Object>, org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON extends Object,B extends org.refcodes.component.ConnectionOpenable.ConnectionOpenBuilder<CON,B>>
org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusMutator, org.refcodes.component.ConnectionStatusAccessor.ConnectionStatusProperty
Modifier and Type | Method | Description |
---|---|---|
<T> T |
getProxy(Class<T> aType) |
Returns the proxy which can be cast to the given type.
|
boolean |
hasProxy(Class<?> aType) |
Returns true if there is at least one proxy of the given type.
|
boolean |
hasProxy(Object aProxy) |
Returns true if the provided proxy is contained inside the
RemoteClient . |
Iterator<Object> |
proxies() |
Returns a read-only iterator containing all the proxy objects previously
being published.
|
boolean |
signOffProxy(Object proxy) |
Signs off an instance previously published using the
publishClassDescriptor() method.
|
close, closeIn, closeQuietly, closeUnchecked
isOpenable
boolean hasProxy(Object aProxy)
RemoteClient
.aProxy
- The proxy to be tested if it is contained inside the
RemoteClient
.RemoteClient
.Iterator<Object> proxies()
boolean hasProxy(Class<?> aType)
aType
- the type<T> T getProxy(Class<T> aType) throws AmbiguousProxyException, NoSuchProxyException
AmbiguousProxyException
even if
hasProxy(Class)
returns true! The method
hasProxy(Class)
returns true in case at least one proxy of the
given type was found whereas this method only returns a proxy in case
there is exactly one proxy of the required type is present.T
- the generic typeaType
- the typeAmbiguousProxyException
- Thrown in case a proxy for a given type
was requested but more than one proxies matched the requested
type.NoSuchProxyException
- Thrown in case a proxy for a given type was
requested but not any proxy matched the requested type.boolean signOffProxy(Object proxy) throws IOException
proxy
- An object of type GenericInstanceDescriptor containing the
information needed to sign-off an instance.IOException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2021. All rights reserved.