public interface RemoteClient extends Remote
RemoteServer
.Modifier and Type | Interface and Description |
---|---|
static interface |
RemoteClient.ProxyControl
The
RemoteClient.ProxyControl is used to manage a proxy being provided from a
subject be the RemoteServer . |
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 |
---|---|
<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.
|
isOpenable
close, closeIn, closeQuietly, closeUnchecked
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 a 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 a 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 org.refcodes.component.OpenException
proxy
- An object of type GenericInstanceDescriptor containing the
information needed to sign-off an instance.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2018. All rights reserved.