
com.hazelcast.replicatedmap.impl.client.ClientReplicatedMapKeySetRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2008-2016, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.hazelcast.replicatedmap.impl.client;
import com.hazelcast.replicatedmap.impl.operation.KeySetOperation;
import com.hazelcast.security.permission.ActionConstants;
import com.hazelcast.security.permission.ReplicatedMapPermission;
import com.hazelcast.spi.Operation;
import java.security.Permission;
/**
* Client request class for {@link java.util.Map#keySet()} implementation
*/
public class ClientReplicatedMapKeySetRequest extends AbstractReplicatedMapClientRequest {
ClientReplicatedMapKeySetRequest() {
super(null, -1);
}
public ClientReplicatedMapKeySetRequest(String mapName, int partitionId) {
super(mapName, partitionId);
}
@Override
protected Operation prepareOperation() {
return new KeySetOperation(getMapName());
}
@Override
public int getClassId() {
return ReplicatedMapPortableHook.KEY_SET;
}
@Override
public Permission getRequiredPermission() {
return new ReplicatedMapPermission(getMapName(), ActionConstants.ACTION_READ);
}
@Override
public String getMethodName() {
return "keySet";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy