Package nxt.messaging
Class MessagingTransactionType
java.lang.Object
nxt.blockchain.TransactionType
nxt.blockchain.ChildTransactionType
nxt.messaging.MessagingTransactionType
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Field Summary
FieldsFields inherited from class nxt.blockchain.ChildTransactionType
TYPE_ACCOUNT_CONTROL, TYPE_ACCOUNT_PROPERTY, TYPE_ALIASES, TYPE_ASSET_EXCHANGE, TYPE_CHILD_CHAIN_CONTROL, TYPE_COIN_EXCHANGE, TYPE_DATA, TYPE_DIGITAL_GOODS, TYPE_LIGHT_CONTRACT, TYPE_MESSAGING, TYPE_MONETARY_SYSTEM, TYPE_PAYMENT, TYPE_SHUFFLING, TYPE_VOTING -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddListener(Listener<MessagingTransactionType.MessageEvent> listener, MessagingTransactionType.Event eventType) final booleanapplyAttachmentUnconfirmed(ChildTransactionImpl transaction, Account senderAccount) static TransactionTypefindTransactionType(byte subtype) final bytegetType()final booleanisGlobal()static booleanremoveListener(Listener<MessagingTransactionType.MessageEvent> listener, MessagingTransactionType.Event eventType) final voidundoAttachmentUnconfirmed(ChildTransactionImpl transaction, Account senderAccount) Methods inherited from class nxt.blockchain.ChildTransactionType
apply, applyAttachment, applyAttachment, applyAttachmentUnconfirmed, applyUnconfirmed, findTransactionType, getBaselineFee, getInvolvedChildChains, getInvolvedChildChains, undoAttachmentUnconfirmed, undoUnconfirmed, validateAttachment, validateAttachment, validateId, validateIdMethods inherited from class nxt.blockchain.TransactionType
canHaveRecipient, getBaselineFeeHeight, getLedgerEvent, getName, getNextFee, getNextFeeHeight, getSubtype, isBlockDuplicate, isDuplicate, isDuplicate, isDuplicate, isPhasable, isPhasingSafe, isPruned, isUnconfirmedDuplicate, mustHaveRecipient, parseAttachment, parseAttachment, toString
-
Field Details
-
ARBITRARY_MESSAGE
-
-
Method Details
-
findTransactionType
-
getType
public final byte getType()- Specified by:
getTypein classTransactionType
-
applyAttachmentUnconfirmed
public final boolean applyAttachmentUnconfirmed(ChildTransactionImpl transaction, Account senderAccount) - Specified by:
applyAttachmentUnconfirmedin classChildTransactionType- Parameters:
transaction- Transaction to apply as unconfirmedsenderAccount- Cached sender account- Returns:
- return false ONLY if double spending detected.
-
undoAttachmentUnconfirmed
public final void undoAttachmentUnconfirmed(ChildTransactionImpl transaction, Account senderAccount) - Specified by:
undoAttachmentUnconfirmedin classChildTransactionType
-
isGlobal
public final boolean isGlobal()- Specified by:
isGlobalin classTransactionType
-
addListener
public static boolean addListener(Listener<MessagingTransactionType.MessageEvent> listener, MessagingTransactionType.Event eventType) -
removeListener
public static boolean removeListener(Listener<MessagingTransactionType.MessageEvent> listener, MessagingTransactionType.Event eventType)
-