All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jd.blockchain.sdk.service.event.EventContextData Maven / Gradle / Ivy

The newest version!
package com.jd.blockchain.sdk.service.event;

import com.jd.blockchain.crypto.HashDigest;
import com.jd.blockchain.sdk.EventContext;
import com.jd.blockchain.sdk.EventListenerHandle;
import com.jd.blockchain.sdk.EventPoint;

/**
 * 事件上下文对象
 *
 * @author shaozhuguang
 *
 * @param 
 */
public class EventContextData implements EventContext {

    private HashDigest ledgerHash;
    private EventListenerHandle handle;

    EventContextData(HashDigest ledgerHash, EventListenerHandle handle) {
        this.ledgerHash = ledgerHash;
        this.handle = handle;
    }

    @Override
    public HashDigest getLedgerHash() {
        return ledgerHash;
    }

    @Override
    public EventListenerHandle getHandle() {
        return handle;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy