aboutsummaryrefslogtreecommitdiffstats
path: root/docproc/src/main/java/com/yahoo/docproc/impl/ProcessingAccess.java
blob: b4b2e5831df072f55c02cdd98341f6d5aa509840 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.docproc.impl;

import com.yahoo.docproc.CallStack;
import com.yahoo.document.DocumentOperation;

import java.util.List;

/**
 * Bridge to access protected (originally package private) methods in {@link com.yahoo.docproc.Processing}.
 *
 * @author gjoranv
 */
public abstract class ProcessingAccess {

    protected ProcessingEndpoint getEndpoint() {
        throw new UnsupportedOperationException("docproc.Processing must override this method!");
    }

    protected void setEndpoint(ProcessingEndpoint endpoint) {
        throw new UnsupportedOperationException("docproc.Processing must override this method!");
    }

    protected void setCallStack(CallStack callStack) {
        throw new UnsupportedOperationException("docproc.Processing must override this method!");
    }

    protected List<DocumentOperation> getOnceOperationsToBeProcessed() {
        throw new UnsupportedOperationException("docproc.Processing must override this method!");
    }

}