Modifier and Type | Field and Description |
---|---|
private RegistryChannel |
channel
the channel
|
private Codec |
codec
the codec
|
Constructor and Description |
---|
SinglePort(ChannelFactory factory)
constructor
|
SinglePort(ChannelFactory factory,
Codec theCodec)
constructor
|
SinglePort(RegistryChannel theChannel,
Codec theCodec)
constructor
|
Modifier and Type | Method and Description |
---|---|
Response |
execute(Request request)
"execute" a request, i.e. send it to the registry and wait for the
response
|
RegistryChannel |
getChannel()
return the channel that is used.
|
private RegistryChannel channel
private Codec codec
public SinglePort(ChannelFactory factory, Codec theCodec) throws java.io.IOException
factory
- the factory for the channeltheCodec
- the codec to use. If null
, a
default codec is usedjava.io.IOException
- if no channel could be createdpublic SinglePort(RegistryChannel theChannel, Codec theCodec)
theChannel
- an already allocated channeltheCodec
- the codec to use. If null
, a
default codec is usedpublic SinglePort(ChannelFactory factory) throws java.io.IOException
factory
- the factory for the channeljava.io.IOException
- if no channel could be createdpublic Response execute(Request request) throws java.io.IOException
public RegistryChannel getChannel()
Copyright © 2005-2013 Knipp Medien und Kommunikation GmbH