com.google.bitcoin.jni
Class NativePaymentChannelHandlerFactory

java.lang.Object
  extended by 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.


Field Summary
 long ptr
           
 
Constructor Summary
NativePaymentChannelHandlerFactory()
           
 
Method Summary
 ServerConnectionEventHandler onNewConnection(SocketAddress clientAddress)
          Called when a new connection completes version handshake to get a new connection-specific listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ptr

public long ptr
Constructor Detail

NativePaymentChannelHandlerFactory

public NativePaymentChannelHandlerFactory()
Method Detail

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.