summaryrefslogtreecommitdiffstats
path: root/persistence/src/main/java/com/yahoo/persistence/rpc/BucketProviderMethod.java
blob: 3be746d6063e5dbc6f7623a208e55e68a431155b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.persistence.rpc;

/**
 * Class to represent a persistence provider method that has a bucket
 * as its first parameter.
 */
public class BucketProviderMethod extends PersistenceProviderMethod {
    public BucketProviderMethod(String name, PersistenceProviderHandler owner) {
        this(name, owner, "", "");
    }

    public BucketProviderMethod(String name, PersistenceProviderHandler owner, String paramTypes) {
        this(name, owner, paramTypes, "");
    }

    public BucketProviderMethod(String name, PersistenceProviderHandler owner, String paramTypes, String returnTypes) {
        super(name, owner, "ll" + paramTypes, returnTypes);
        paramDesc("bucketId", "The bucket id to perform operation on");
        paramDesc("partitionId", "The partition to perform operation on");
    }
}