com.kolibrifx.plovercrest.server.internal.protocol.SubscriberFrozenEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plovercrest-server Show documentation
Show all versions of plovercrest-server Show documentation
Plovercrest server library.
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;
}
}