public static final class CallerContext.Builder
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
KEY_VALUE_SEPARATOR |
| Constructor | Description |
|---|---|
Builder(java.lang.String context) |
|
Builder(java.lang.String context,
java.lang.String separator) |
|
Builder(java.lang.String context,
Configuration conf) |
| Modifier and Type | Method | Description |
|---|---|---|
CallerContext.Builder |
append(java.lang.String field) |
Append new field to the context.
|
CallerContext.Builder |
append(java.lang.String key,
java.lang.String value) |
Append new field which contains key and value to the context.
|
CallerContext.Builder |
appendIfAbsent(java.lang.String key,
java.lang.String value) |
Append new field which contains key and value to the context
if the key("key:") is absent.
|
CallerContext |
build() |
|
java.lang.String |
getContext() |
Get the context.
|
byte[] |
getSignature() |
Get the signature.
|
CallerContext.Builder |
setSignature(byte[] signature) |
public static final java.lang.String KEY_VALUE_SEPARATOR
public Builder(java.lang.String context)
public Builder(java.lang.String context,
Configuration conf)
public Builder(java.lang.String context,
java.lang.String separator)
public CallerContext.Builder setSignature(byte[] signature)
public java.lang.String getContext()
public byte[] getSignature()
public CallerContext.Builder append(java.lang.String field)
field - one of fields to append.public CallerContext.Builder append(java.lang.String key, java.lang.String value)
key - the key of field.value - the value of field.public CallerContext.Builder appendIfAbsent(java.lang.String key, java.lang.String value)
key - the key of field.value - the value of field.public CallerContext build()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.