public static class PersistableEvent.Builder extends Object
Constructor and Description |
---|
Builder(String channelName,
long eventId) |
Modifier and Type | Method and Description |
---|---|
PersistableEvent |
build() |
PersistableEvent.Builder |
setBasePayload(byte[] basePayload) |
PersistableEvent.Builder |
setChannel(String channel) |
PersistableEvent.Builder |
setEventId(long eventId) |
PersistableEvent.Builder |
setHeader(long headerId,
String baseName,
String baseValue) |
PersistableEvent.Builder |
setHeaderNameSpill(long headerId,
String nameSpill) |
PersistableEvent.Builder |
setHeaderValueSpill(long headerId,
String valueSpill) |
PersistableEvent.Builder |
setSpillPayload(byte[] spillPayload) |
public Builder(String channelName, long eventId)
public PersistableEvent.Builder setEventId(long eventId)
public PersistableEvent.Builder setChannel(String channel)
public PersistableEvent.Builder setBasePayload(byte[] basePayload)
public PersistableEvent.Builder setSpillPayload(byte[] spillPayload)
public PersistableEvent.Builder setHeader(long headerId, String baseName, String baseValue)
public PersistableEvent.Builder setHeaderNameSpill(long headerId, String nameSpill)
public PersistableEvent.Builder setHeaderValueSpill(long headerId, String valueSpill)
public PersistableEvent build()
Copyright © 2009–2019 Apache Software Foundation. All rights reserved.