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

com.kolibrifx.plovercrest.server.internal.protocol.SubscriberFrozenEvent Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2010-2017, KolibriFX AS. Licensed under the Apache License, version 2.0.
 */

package com.kolibrifx.plovercrest.server.internal.protocol;

import java.nio.ByteBuffer;
import com.kolibrifx.plovercrest.client.internal.remote.RemoteResponse;

public class SubscriberFrozenEvent extends StandaloneSubscriberEvent {
    public SubscriberFrozenEvent(final int subscriptionId) {
        super(subscriptionId);
    }

    @Override
    ByteBuffer serialize() {
        final ByteBuffer tmpBuffer = ByteBuffer.allocate(8);
        tmpBuffer.putInt(RemoteResponse.SUBSCRIBE_TABLE_FROZEN.getTag());
        tmpBuffer.putInt(subscriptionId);
        return tmpBuffer;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy