public class MosaicRestrictionTransactionServiceImpl extends java.lang.Object implements MosaicRestrictionTransactionService
MosaicRestrictionTransactionService
.Constructor and Description |
---|
MosaicRestrictionTransactionServiceImpl(RepositoryFactory repositoryFactory)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
io.reactivex.Observable<MosaicAddressRestrictionTransactionFactory> |
createMosaicAddressRestrictionTransactionFactory(UnresolvedMosaicId unresolvedMosaicId,
java.math.BigInteger restrictionKey,
UnresolvedAddress unresolvedTargetAddress,
java.math.BigInteger restrictionValue)
Create a
MosaicAddressRestrictionTransactionFactory object that can be used to create
or update a mosaic address restriction. |
io.reactivex.Observable<MosaicGlobalRestrictionTransactionFactory> |
createMosaicGlobalRestrictionTransactionFactory(UnresolvedMosaicId unresolvedMosaicId,
java.math.BigInteger restrictionKey,
java.math.BigInteger restrictionValue,
MosaicRestrictionType restrictionType)
Create a
MosaicGlobalRestrictionTransactionFactory object that can be used to create or
update a mosaic global restriction. |
public MosaicRestrictionTransactionServiceImpl(RepositoryFactory repositoryFactory)
repositoryFactory
- the repository factory.public io.reactivex.Observable<MosaicGlobalRestrictionTransactionFactory> createMosaicGlobalRestrictionTransactionFactory(UnresolvedMosaicId unresolvedMosaicId, java.math.BigInteger restrictionKey, java.math.BigInteger restrictionValue, MosaicRestrictionType restrictionType)
MosaicRestrictionTransactionService
MosaicGlobalRestrictionTransactionFactory
object that can be used to create or
update a mosaic global restriction.
This service checks the current global restriction value using rest and set the corresponding previousRestrictionType and previousRestrictionValue so an update can be performed.
When using aliases, the service will resolve them in order to query the mosaic restriction rest endpoint. This could add some overhead. If you know the real mosaic id, it's recommended to use it.
createMosaicGlobalRestrictionTransactionFactory
in interface MosaicRestrictionTransactionService
unresolvedMosaicId
- the mosaic id or an alias. If an alias is sent, the service will resolve it in
order to retrieve the current global restriction value.restrictionKey
- Restriction keyrestrictionValue
- New restriction valuerestrictionType
- New restriction typepublic io.reactivex.Observable<MosaicAddressRestrictionTransactionFactory> createMosaicAddressRestrictionTransactionFactory(UnresolvedMosaicId unresolvedMosaicId, java.math.BigInteger restrictionKey, UnresolvedAddress unresolvedTargetAddress, java.math.BigInteger restrictionValue)
MosaicRestrictionTransactionService
MosaicAddressRestrictionTransactionFactory
object that can be used to create
or update a mosaic address restriction.
This service checks the current address restriction value using rest and set the corresponding previousRestrictionValue so an update can be performed.
When using aliases, the service will resolve them in order to query the mosaic restriction rest endpoint. This could add some overhead. If you know the real mosaic id and target address, it's recommended to use them.
createMosaicAddressRestrictionTransactionFactory
in interface MosaicRestrictionTransactionService
unresolvedMosaicId
- the mosaic id or an alias. If an alias is sent, the service will resolve it *
in order to retrieve the current mosaic address restriction value.restrictionKey
- Restriction keyunresolvedTargetAddress
- the target address or an alias. If an alias is sent, the service will
resolve it in order to retrieve the current mosaic address restriction value.restrictionValue
- New restriction valueMosaicAddressRestrictionTransactionFactory
object without previous restriction
data