com.google.bitcoin.jni
Class NativePaymentChannelHandlerFactory
java.lang.Object
com.google.bitcoin.jni.NativePaymentChannelHandlerFactory
- All Implemented Interfaces:
- PaymentChannelServerListener.HandlerFactory
public class NativePaymentChannelHandlerFactory
- extends Object
- implements PaymentChannelServerListener.HandlerFactory
An event listener that relays events to a native C++ object. A pointer to that object is stored in
this class using JNI on the native side, thus several instances of this can point to different actual
native implementations.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ptr
public long ptr
NativePaymentChannelHandlerFactory
public NativePaymentChannelHandlerFactory()
onNewConnection
@Nullable
public ServerConnectionEventHandler onNewConnection(SocketAddress clientAddress)
- Description copied from interface:
PaymentChannelServerListener.HandlerFactory
- Called when a new connection completes version handshake to get a new connection-specific listener.
If null is returned, the connection is immediately closed.
- Specified by:
onNewConnection in interface PaymentChannelServerListener.HandlerFactory
Copyright © 2014. All rights reserved.