package org.apache.thrift.transport;
+import java.io.Closeable;
+
/**
* Server transport. Object which provides client transports.
*
*/
-public abstract class TServerTransport {
+public abstract class TServerTransport implements Closeable {
public abstract void listen() throws TTransportException;
package org.apache.thrift.transport;
+import java.io.Closeable;
+
/**
* Generic class that encapsulates the I/O layer. This is basically a thin
* wrapper around the combined functionality of Java input/output streams.
*
*/
-public abstract class TTransport {
+public abstract class TTransport implements Closeable {
/**
* Queries whether the transport is open.