blob: 19f1c7a01f3ac2a2a71db1e5b895424f148515fa [file] [log] [blame]
package com.google.net.stubby.newtransport;
import com.google.common.util.concurrent.Service;
/**
* A listener to a server for transport creation events.
*/
public interface ServerListener {
/**
* Called upon the establishment of a new client connection.
*
* @param transport the new transport to be observed.
* @return a listener for stream creation events on the transport.
*/
ServerTransportListener transportCreated(Service transport);
}