public class EventService extends BaseService
metricsTask| 构造器和说明 |
|---|
EventService(INetwork client,
TimerTaskManager timerTaskManager,
ClientEnv env) |
chooseEndpoint, getEnv, getNetwork, queryReceiptAsync, queryReceiptSync, sendAsyncLocalTransaction, sendAsyncLocalTransaction, sendAsyncRequest, sendAsyncRequest, sendAsyncTransaction, sendAsyncTransaction, sendLocalTransaction, sendLocalTransaction, sendSyncRequest, sendSyncRequest, sendSyncTransaction, sendSyncTransaction, signRequest, signRequest, signRequest, signRequestWithZoropublic EventService(INetwork client, TimerTaskManager timerTaskManager, ClientEnv env)
public boolean start(MychainClient client)
start 在类中 BaseServicepublic boolean stop()
stop 在类中 BaseServicepublic BigInteger listenAccount(Identity id, IEventCallback handler, EventModelType type)
id - handler - type - public BigInteger listenAccount(Identity id, IEventCallback handler, EventModelType type, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
id - handler - myChainId - type - public BigInteger listenContract(Identity id, IEventCallback handler, EventModelType type)
id - handler - type - public BigInteger listenContract(Identity id, IEventCallback handler, EventModelType type, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
id - handler - myChainId - type - public BigInteger listenTopics(List<String> topics, IEventCallback handler, VMTypeEnum vmType, EventModelType type)
topics - handler - vmType - type - public BigInteger listenTopics(List<String> topics, IEventCallback handler, VMTypeEnum vmType, EventModelType type, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
topics - handler - vmType - myChainId - type - public Long listenTopicsReliably(List<String> topics, IEventCallback handler, IProcessBlockHandler processBlockHandler, VMTypeEnum vmTypeEnum, Boolean isPlainTopic)
topics - handler - processBlockHandler - vmTypeEnum - isPlainTopic - topic 是否可以直接进行hexpublic Long listenTopicsReliably(List<String> topics, IEventCallback handler, IProcessBlockHandler processBlockHandler, VMTypeEnum vmTypeEnum, Boolean isPlainTopic, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
topics - handler - processBlockHandler - vmTypeEnum - myChainId - isPlainTopic - topic 是否可以直接进行hexpublic boolean unlistenTopicsReliably(Long taskId)
public BigInteger listenBlock(IEventCallback handler, EventModelType type)
handler - type - public BigInteger listenBlock(IEventCallback handler, EventModelType type, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
handler - type - myChainId - public boolean unListenAccount(BigInteger eventId)
public boolean unListenContract(BigInteger eventId)
public boolean unListenTopics(BigInteger eventId)
public boolean unListenAccount(BigInteger eventId, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
public boolean unListenContract(BigInteger eventId, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
public boolean unListenTopics(BigInteger eventId, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
public boolean unListenBlock(BigInteger eventId)
public boolean unListenBlock(BigInteger eventId, BaseFixedSizeByteArray.Fixed20ByteArray myChainId)
public BigInteger listenEvent(Request request, IEventCallback cb, EventDataType dataType, EventModelType modelType)
public BigInteger listenEvent(Request request, IEventCallback cb, EventDataType dataType, EventModelType modelType, String endpoint)
public void reRegisterAllEvents(String endpoint)
public EventManager getEventManager()
public void setEventManager(EventManager eventManager)
eventManager - value to be assigned to property eventManagerCopyright © 2022. All rights reserved.