Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

package com.microsoft.azure.functions;

import java.lang.reflect.Parameter;
import java.util.Map;
import java.util.logging.Logger;

/**
Expand Down Expand Up @@ -50,5 +52,15 @@ default TraceContext getTraceContext() {
default RetryContext getRetryContext() {
return null;
}

Object getReturnValue();

Map<String, Parameter> getParamInfoMap();

void setInputArgument(String key, Object value);

Map<String, String> getArgumentPayloadMap();

void setMiddlewareOutput(Object value);
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.functions.middleware;

import com.microsoft.azure.functions.ExecutionContext;

public interface FunctionWorkerChain {
void doNext(ExecutionContext context) throws Exception;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.functions.middleware;

import com.microsoft.azure.functions.ExecutionContext;

public interface FunctionWorkerMiddleware {
void invoke(ExecutionContext context, FunctionWorkerChain next) throws Exception;
}