public class CATransportRegistry extends Object
| Constructor and Description |
|---|
CATransportRegistry()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear cache.
|
Transport[] |
get(InetSocketAddress address)
Lookup for a transport for given address (all priorities).
|
Transport |
get(InetSocketAddress address,
short priority)
Lookup for a transport for given address.
|
int |
numberOfActiveTransports()
Get number of active (cached) transports.
|
void |
put(InetSocketAddress address,
Transport transport)
Cache new (address, transport) pair.
|
Transport |
remove(InetSocketAddress address,
short priority)
Remove (address, transport) pair from cache.
|
Transport[] |
toArray()
Get array of all active (cached) transports.
|
public void put(InetSocketAddress address, Transport transport)
address - address of the host computer.transport - tranport to the host computer.public Transport get(InetSocketAddress address, short priority)
address - address of the host computer.priority - priority of the transport.null if none found.public Transport[] get(InetSocketAddress address)
address - address of the host computer.null if none found.public Transport remove(InetSocketAddress address, short priority)
address - address of the host computer.priority - priority of the transport to be removed.null if none found.public void clear()
public int numberOfActiveTransports()
public Transport[] toArray()
Copyright © 2004-2020 EPICS. All Rights Reserved.