public class CloseableChannel extends Object implements Closeable
Constructor and Description |
---|
CloseableChannel(Backend backend) |
CloseableChannel(Backend backend,
Optional<Integer> distributionKey) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Optional<Integer> |
distributionKey() |
BasicPacket[] |
receivePackets(long timeout,
int packetCount) |
boolean |
sendPacket(BasicPacket packet) |
void |
setQuery(Query query) |
public CloseableChannel(Backend backend)
public void setQuery(Query query)
public boolean sendPacket(BasicPacket packet) throws InvalidChannelException, IOException
InvalidChannelException
IOException
public BasicPacket[] receivePackets(long timeout, int packetCount) throws InvalidChannelException, ChannelTimeoutException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
Copyright © 2018. All rights reserved.