com.google.bitcoin.protocols.channels
Class StoredServerChannel

java.lang.Object
  extended by com.google.bitcoin.protocols.channels.StoredServerChannel

public class StoredServerChannel
extends Object

Represents the state of a channel once it has been opened in such a way that it can be stored and used to resume a channel which was interrupted (eg on connection failure) or settle the channel automatically as the channel expire time approaches.


Method Summary
 PaymentChannelServerState getOrCreateState(Wallet wallet, TransactionBroadcaster broadcaster)
          Gets the canonical PaymentChannelServerState object for this channel, either by returning an existing one or by creating a new one.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getOrCreateState

public PaymentChannelServerState getOrCreateState(Wallet wallet,
                                                  TransactionBroadcaster broadcaster)
                                           throws VerificationException
Gets the canonical PaymentChannelServerState object for this channel, either by returning an existing one or by creating a new one.

Parameters:
wallet - The wallet which holds the PaymentChannelServerState in which this is saved and which will be used to complete transactions
broadcaster - The TransactionBroadcaster which will be used to broadcast contract/payment transactions.
Throws:
VerificationException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All rights reserved.