com.google.bitcoin.protocols.channels
Interface PaymentChannelServerListener.HandlerFactory

All Known Implementing Classes:
NativePaymentChannelHandlerFactory
Enclosing class:
PaymentChannelServerListener

public static interface PaymentChannelServerListener.HandlerFactory

A factory which generates connection-specific event handlers.


Method Summary
 ServerConnectionEventHandler onNewConnection(SocketAddress clientAddress)
          Called when a new connection completes version handshake to get a new connection-specific listener.
 

Method Detail

onNewConnection

@Nullable
ServerConnectionEventHandler onNewConnection(SocketAddress clientAddress)
Called when a new connection completes version handshake to get a new connection-specific listener. If null is returned, the connection is immediately closed.



Copyright © 2014. All rights reserved.