public static class Channel.PeerOptions extends Object implements Cloneable, Serializable
Modifier and Type | Method and Description |
---|---|
Channel.PeerOptions |
addPeerRole(Peer.PeerRole peerRole)
Add to the roles this peer will have on the chain it will added or joined.
|
Channel.PeerOptions |
clone()
Clone.
|
static Channel.PeerOptions |
createPeerOptions()
Create an instance of PeerOptions.
|
Boolean |
getNewest()
Get newest block on startup of peer eventing service.
|
EnumSet<Peer.PeerRole> |
getPeerRoles()
Return the roles the peer has.
|
Long |
getStartEvents()
The block number to start getting events from on start up of the peer eventing service..
|
Long |
getStopEvents()
The stopping block number when the peer eventing service will stop sending blocks.
|
Channel.PeerOptions |
registerEventsForBlocks()
Register the peer eventing services to return full event blocks.
|
Channel.PeerOptions |
registerEventsForFilteredBlocks()
Register the peer eventing services to return filtered blocks.
|
Channel.PeerOptions |
registerEventsForPrivateData()
Register the peer eventing services to return private data maps with the blocks.
|
Channel.PeerOptions |
setPeerRoles(EnumSet<Peer.PeerRole> peerRoles)
Set the roles this peer will have on the chain it will added or joined.
|
Channel.PeerOptions |
startEvents(long start)
Set the block number the eventing peer will start relieving events.
|
Channel.PeerOptions |
startEventsNewest()
This is the default.
|
Channel.PeerOptions |
stopEvents(long stop)
The block number to stop sending events.
|
String |
toString() |
public Channel.PeerOptions registerEventsForFilteredBlocks()
public Channel.PeerOptions registerEventsForPrivateData()
public Channel.PeerOptions registerEventsForBlocks()
public Boolean getNewest()
public Long getStartEvents()
public Long getStopEvents()
public static Channel.PeerOptions createPeerOptions()
public EnumSet<Peer.PeerRole> getPeerRoles()
Peer.PeerRole
public Channel.PeerOptions setPeerRoles(EnumSet<Peer.PeerRole> peerRoles)
peerRoles
- Peer.PeerRole
public Channel.PeerOptions addPeerRole(Peer.PeerRole peerRole)
peerRole
- see Peer.PeerRole
public Channel.PeerOptions startEvents(long start)
start
- The staring block number.public Channel.PeerOptions startEventsNewest()
public Channel.PeerOptions stopEvents(long stop)
stop
- the number to stop sending events.public Channel.PeerOptions clone()
Copyright © 2022. All rights reserved.