public class TGrizzlyClientTransport extends AbstractTGrizzlyTransport
BlockingQueue which belongs to ThriftClientFilter has input messages when server's response are arrived. Only TTransport#flush() will be called, output messages will be written. Before flush(), output messages will be stored in buffer.
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static TGrizzlyClientTransport |
create(org.glassfish.grizzly.Connection connection) |
static TGrizzlyClientTransport |
create(org.glassfish.grizzly.Connection connection,
long readTimeoutMillis) |
static TGrizzlyClientTransport |
create(org.glassfish.grizzly.Connection connection,
long readTimeoutMillis,
long writeTimeoutMillis) |
void |
flush() |
org.glassfish.grizzly.Connection |
getGrizzlyConnection() |
protected org.glassfish.grizzly.Buffer |
getInputBuffer() |
protected org.glassfish.grizzly.utils.BufferOutputStream |
getOutputStream() |
boolean |
isOpen() |
open, read, writepublic static TGrizzlyClientTransport create(org.glassfish.grizzly.Connection connection)
public static TGrizzlyClientTransport create(org.glassfish.grizzly.Connection connection, long readTimeoutMillis)
public static TGrizzlyClientTransport create(org.glassfish.grizzly.Connection connection, long readTimeoutMillis, long writeTimeoutMillis)
public boolean isOpen()
isOpen in class org.apache.thrift.transport.TTransportpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.thrift.transport.TTransportpublic void flush()
throws org.apache.thrift.transport.TTransportException
flush in class AbstractTGrizzlyTransportorg.apache.thrift.transport.TTransportExceptionpublic org.glassfish.grizzly.Connection getGrizzlyConnection()
protected org.glassfish.grizzly.Buffer getInputBuffer()
throws org.apache.thrift.transport.TTransportException
getInputBuffer in class AbstractTGrizzlyTransportorg.apache.thrift.transport.TTransportExceptionprotected org.glassfish.grizzly.utils.BufferOutputStream getOutputStream()
getOutputStream in class AbstractTGrizzlyTransportCopyright © 2017-2019 Oracle Corporation. All Rights Reserved.