-public sealed class SkipTransactionsPayload extends AbstractIdentifiablePayload<LocalHistoryIdentifier> {
- private static final class Magnesium extends SkipTransactionsPayload implements LegacySerializable {
- @java.io.Serial
- private static final long serialVersionUID = 1L;
-
- Magnesium(final LocalHistoryIdentifier historyId, final byte[] serialized,
- final ImmutableUnsignedLongSet transactionIds) {
- super(historyId, serialized, transactionIds);
- }
- }
-
- @Deprecated(since = "7.0.0", forRemoval = true)
- private static final class Proxy extends AbstractProxy<LocalHistoryIdentifier> {
- @java.io.Serial
- private static final long serialVersionUID = 1L;
-
- private ImmutableUnsignedLongSet transactionIds;
-
- // checkstyle flags the public modifier as redundant which really doesn't make sense since it clearly isn't
- // redundant. It is explicitly needed for Java serialization to be able to create instances via reflection.
- @SuppressWarnings("checkstyle:RedundantModifier")
- public Proxy() {
- // For Externalizable
- }
-
- @Override
- protected LocalHistoryIdentifier readIdentifier(final DataInput in) throws IOException {
- final var id = LocalHistoryIdentifier.readFrom(in);
- transactionIds = ImmutableUnsignedLongSet.readFrom(in);
- return id;
- }
-
- @Override
- protected SkipTransactionsPayload createObject(final LocalHistoryIdentifier identifier,
- final byte[] serialized) {
- return new Magnesium(identifier, serialized, verifyNotNull(transactionIds));
- }
- }
-